def my_write():
    file=open('a.text',"w",encoding='utf-8')
    file.write('梅旺阳大帅逼')
    file.close()
def my_read():
    file=open('a.text','r',encoding='utf-8')
    s=file.read()
    print(type(s),s)
    file.close()
if __name__=='__main__':
    my_write()
    my_read()